package com.li.enums;

/**
 * @Author: LiXiang
 * @Description :
 * @Date: Created in 2018/9/9 20:21
 */
public enum ResultEnum {

    Success(200,"操作成功"),
    UNKonw_ERR(-1,"未知异常"),
    UNSession_ERR(401,"登录超时")

    ;

    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
